package com.sptpc.demo.vo;

import com.sptpc.demo.model.Drink;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//前端需要的带分类完整信息的饮品VO
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CategoryWithDrinksVo {
    private Long id;

    private String name;

    //1对多关系
    private List<Drink> drinks;
}
